//
//  WFEatListCollectionViewCell.h
//  WeiFang
//
//  Created by  WeiFang on 2016/11/21.
//  Copyright © 2020年 WeiFang. All rights reserved.
//

#import "BaseCollectionViewCell.h"

@class WFEatListCollectionViewCell;
@class WFEatListCollectionViewCellModel;

@protocol WFEatListCollectionViewCellDelegate <NSObject>

- (void)eatListCollectionViewCell:(WFEatListCollectionViewCell *)cell buttonAction:(UIButton *)sender;

@end

@interface WFEatListCollectionViewCell : BaseCollectionViewCell

@property (nonatomic,weak) id<WFEatListCollectionViewCellDelegate>delegate;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) WFEatListCollectionViewCellModel *model;

@end



#pragma mark - model

@interface WFEatListCollectionViewCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,assign) NSInteger index;

+ (WFEatListCollectionViewCellModel *)ittemModelWithTitle:(NSString *)title index:(NSInteger)index;
    
@end
